﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WisDom.SmartTMS.Models.Test;

namespace WisDom.SmartTMS.Controllers
{
    [ApiController]   //所有API控制器都必须有这个注解
    [Route("api/[controller]/[action]")]
   public class MyApiController:SmartTMSController   //继承基类
    {
        //添加方法
        [HttpPost]
        public async Task<IActionResult>CreateAsync(TestModel model)
        {
            return Ok(model);
        }
    }
}
